package cn.zhfeat.hatch.entity.sysuser;

import java.io.Serializable;
import java.util.Date;

public class SysUser implements Serializable{
    
	private static final long serialVersionUID = 1L;
  
    /** mycat生成唯一id*/
    private Long id;

    /** 创建时间*/
    private Date createTime;

    /** 更新时间*/
    private Date updateTime;

    /** 创建人id*/
    private Long createUserId;

    /** 删除时间*/
    private Date deleteTime;

    /** 删除标记*/
    private Integer isDeleted;

    /** 手机号*/
    private String account;

    /** 固定电话*/
    private String phone;

    /** 密码*/
    private String pwd;

    /** 名称*/
    private String name;

    /** 邮箱*/
    private String email;

    /** 所属地区*/
    private String districtName;

    /** 行业*/
    private String industry;

    /** 企业*/
    private String company;

    /** 企业编码*/
    private String companyCode;

    /** 职位*/
    private String job;

    /** 爱好*/
    private String hobby;

    /** 编码*/
    private String code;

    /** 状态 0：正常；1：失效*/
    private Integer status;

    /** 部门编号*/
    private Long departmentId;

    /** 社交账号 json存储：类型、名称、绑定状态*/
    private String socialAccount;

    /** 头像*/
    private String avatar;

    /** 性别，m：男、f：女、n：未知*/
    private String gender;

    /** 账户停用时间*/
    private Date stopTime;

    /** 工号*/
    private String jobNumber;

    /** 账号到期时间*/
    private Date expiryTime;

    /** 移动端对应的身份 0老板 1店员*/
    private Integer appIdentity;

    /** 数据权限 0全部 1门店*/
    private Integer dataAuthority;

    /** 第三方token*/
    private String thirdToken;

    /** token失效时间*/
    private Date thirdTokenExpiryTime;

    /** 0：不同意(默认) 1：同意*/
    private Integer agreement;

    /** 用来表示初次登陆，0表示初次，1表示非初次*/
    private Integer isFirstLogin;

    /** access_token*/
    private String accessToken;

    /** 是否事超级管理员  0不是  1是*/
    private Integer isSuper;
    
    /** 企业ID 新增字段20180509  - ZhangHao*/
    private Long cid; 
    
    /** 用户业务身份(个人1、管理2、个人无归属数据3、部门无归属数据4) 新增字段20180509 - ZhangHao*/
    private Integer userIdentity;
    
    
    // 非数据库字段
    
    /** 部门名称*/
    private String departmentName;  // company_department表 name字段 - Yangcl
    /** 角色名称*/
    private String roleName; // sys_role表 name字段 - ZhangHao
    /** 角色对应的一组id*/
    private String roleIds; // sys_role表 id字段 - ZhangHao
    
    /**	crm门店id --MaJie*/
    private String crmStoreId;
    
    /**	crn角色id --MaJie*/
    private String crmRoleId;
    
    // 门店 - Yangcl
    private String stores;
    
    
    private String userIds; //一组按逗号分隔的用户ID - ZhangHao
    
    private String responsibleStoreIds;  //用户选择的一组负责门店 - ZhangHao
    
    private String responsibleDepartmentIds; //用户选择的一组负责部门 - ZhangHao
    
    private Long storeId; //用户的所属门店 - ZhangHao
    
    private Long attributeId; //属性id
    
    private String attributeValue; //一组属性值
   
    private String attributeName; //属性名称
    
    private Integer currentUser; //是否是当前用户 0不是，1是 - ZhangHao

    /** 免登token*/
    private String exemptsToken;

    /** 免登token失效时间*/
    private Date exemptsTokenExpiryTime;
    
    
    public String getStores() {
		return stores;
	}

	public void setStores(String stores) {
		this.stores = stores;
	}

	public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }

    public Date getDeleteTime() {
        return deleteTime;
    }

    public void setDeleteTime(Date deleteTime) {
        this.deleteTime = deleteTime;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account == null ? null : account.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd == null ? null : pwd.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getDistrictName() {
        return districtName;
    }

    public void setDistrictName(String districtName) {
        this.districtName = districtName == null ? null : districtName.trim();
    }

    public String getIndustry() {
        return industry;
    }

    public void setIndustry(String industry) {
        this.industry = industry == null ? null : industry.trim();
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company == null ? null : company.trim();
    }

    public String getCompanyCode() {
        return companyCode;
    }

    public void setCompanyCode(String companyCode) {
        this.companyCode = companyCode == null ? null : companyCode.trim();
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job == null ? null : job.trim();
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby == null ? null : hobby.trim();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(Long departmentId) {
        this.departmentId = departmentId;
    }

    public String getSocialAccount() {
        return socialAccount;
    }

    public void setSocialAccount(String socialAccount) {
        this.socialAccount = socialAccount == null ? null : socialAccount.trim();
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar == null ? null : avatar.trim();
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender == null ? null : gender.trim();
    }

    public Date getStopTime() {
        return stopTime;
    }

    public void setStopTime(Date stopTime) {
        this.stopTime = stopTime;
    }

    public String getJobNumber() {
        return jobNumber;
    }

    public void setJobNumber(String jobNumber) {
        this.jobNumber = jobNumber == null ? null : jobNumber.trim();
    }

    public Date getExpiryTime() {
        return expiryTime;
    }

    public void setExpiryTime(Date expiryTime) {
        this.expiryTime = expiryTime;
    }

    public Integer getAppIdentity() {
        return appIdentity;
    }

    public void setAppIdentity(Integer appIdentity) {
        this.appIdentity = appIdentity;
    }

    public Integer getDataAuthority() {
        return dataAuthority;
    }

    public void setDataAuthority(Integer dataAuthority) {
        this.dataAuthority = dataAuthority;
    }

    public String getThirdToken() {
        return thirdToken;
    }

    public void setThirdToken(String thirdToken) {
        this.thirdToken = thirdToken == null ? null : thirdToken.trim();
    }

    public Date getThirdTokenExpiryTime() {
        return thirdTokenExpiryTime;
    }

    public void setThirdTokenExpiryTime(Date thirdTokenExpiryTime) {
        this.thirdTokenExpiryTime = thirdTokenExpiryTime;
    }

    public Integer getAgreement() {
        return agreement;
    }

    public void setAgreement(Integer agreement) {
        this.agreement = agreement;
    }

    public Integer getIsFirstLogin() {
        return isFirstLogin;
    }

    public void setIsFirstLogin(Integer isFirstLogin) {
        this.isFirstLogin = isFirstLogin;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken == null ? null : accessToken.trim();
    }

    public Integer getIsSuper() {
        return isSuper;
    }

    public void setIsSuper(Integer isSuper) {
        this.isSuper = isSuper;
    }

	public String getDepartmentName() {
		return departmentName;
	}

	public void setDepartmentName(String departmentName) {
		this.departmentName = departmentName;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public Long getCid() {
		return cid;
	}

	public void setCid(Long cid) {
		this.cid = cid;
	}

	public Integer getUserIdentity() {
		return userIdentity;
	}

	public void setUserIdentity(Integer userIdentity) {
		this.userIdentity = userIdentity;
	}

	public String getRoleIds() {
		return roleIds;
	}

	public void setRoleIds(String roleIds) {
		this.roleIds = roleIds;
	}

	public String getCrmStoreId() {
		return crmStoreId;
	}

	public void setCrmStoreId(String crmStoreId) {
		this.crmStoreId = crmStoreId;
	}

	public String getCrmRoleId() {
		return crmRoleId;
	}

	public void setCrmRoleId(String crmRoleId) {
		this.crmRoleId = crmRoleId;
	}

	@Override
	public String toString() {
		return "SysUser [id=" + id + ", createTime=" + createTime + ", updateTime=" + updateTime + ", createUserId="
				+ createUserId + ", deleteTime=" + deleteTime + ", isDeleted=" + isDeleted + ", account=" + account
				+ ", phone=" + phone + ", pwd=" + pwd + ", name=" + name + ", email=" + email + ", districtName="
				+ districtName + ", industry=" + industry + ", company=" + company + ", companyCode=" + companyCode
				+ ", job=" + job + ", hobby=" + hobby + ", code=" + code + ", status=" + status + ", departmentId="
				+ departmentId + ", socialAccount=" + socialAccount + ", avatar=" + avatar + ", gender=" + gender
				+ ", stopTime=" + stopTime + ", jobNumber=" + jobNumber + ", expiryTime=" + expiryTime
				+ ", appIdentity=" + appIdentity + ", dataAuthority=" + dataAuthority + ", thirdToken=" + thirdToken
				+ ", thirdTokenExpiryTime=" + thirdTokenExpiryTime + ", agreement=" + agreement + ", isFirstLogin="
				+ isFirstLogin + ", accessToken=" + accessToken + ", isSuper=" + isSuper + ", cid=" + cid
				+ ", userIdentity=" + userIdentity + ", departmentName=" + departmentName + ", roleName=" + roleName
				+ ", roleIds=" + roleIds + ", crmStoreId=" + crmStoreId + ", crmRoleId=" + crmRoleId + "]";
	}

	public String getUserIds() {
		return userIds;
	}

	public void setUserIds(String userIds) {
		this.userIds = userIds;
	}

	public String getResponsibleStoreIds() {
		return responsibleStoreIds;
	}

	public void setResponsibleStoreIds(String responsibleStoreIds) {
		this.responsibleStoreIds = responsibleStoreIds;
	}

	public String getResponsibleDepartmentIds() {
		return responsibleDepartmentIds;
	}

	public void setResponsibleDepartmentIds(String responsibleDepartmentIds) {
		this.responsibleDepartmentIds = responsibleDepartmentIds;
	}

	public Long getStoreId() {
		return storeId;
	}

	public void setStoreId(Long storeId) {
		this.storeId = storeId;
	}

	public Long getAttributeId() {
		return attributeId;
	}

	public void setAttributeId(Long attributeId) {
		this.attributeId = attributeId;
	}

	public String getAttributeValue() {
		return attributeValue;
	}

	public void setAttributeValue(String attributeValue) {
		this.attributeValue = attributeValue;
	}

	public String getAttributeName() {
		return attributeName;
	}

	public void setAttributeName(String attributeName) {
		this.attributeName = attributeName;
	}

	public Integer getCurrentUser() {
		return currentUser;
	}

	public void setCurrentUser(Integer currentUser) {
		this.currentUser = currentUser;
	}

    public String getExemptsToken() {
        return exemptsToken;
    }

    public void setExemptsToken(String exemptsToken) {
        this.exemptsToken = exemptsToken;
    }

    public Date getExemptsTokenExpiryTime() {
        return exemptsTokenExpiryTime;
    }

    public void setExemptsTokenExpiryTime(Date exemptsTokenExpiryTime) {
        this.exemptsTokenExpiryTime = exemptsTokenExpiryTime;
    }
}